package com.atguigu.gmall.feign.list;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.list.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 钟涛
 * @version 1.0
 * @description: TODO
 * @date 2021/12/18 13:57
 */
@FeignClient("service-list")
@RequestMapping("/api/es/sku")
public interface SkuEsFeignClient {
    @PostMapping("/up")
    public Result upSkuInfo(@RequestBody Goods goods);

    @GetMapping("/down/{skuId}")
    public Result downSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/incrementHotScore/hot/{skuId}")
    public Result incrementHotScore(@PathVariable("skuId") Long skuId, @RequestParam("hotScore") Long hotScore);


}